using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace QuanLyThuVien
{
    class KiemTra
    {
        public KiemTra()
        {
 
        }
        public bool KiemTraTextBox(string chuoi)
        { 
            bool flag=true;
            char[] kitudacbiet ={'!','@','#','$','%','^','&','*','(',')'};
            string[] chuoidacat = chuoi.Split(' ');
            foreach(string chuoidacat_con in chuoidacat)
                foreach (char kitu in chuoidacat_con)
                    foreach (char kt in kitudacbiet)
                        if (kitu == kt)
                        {
                            flag = false;
                            return flag;
                        }
            return flag;
        }
    }
}
